package com.fs.controller.v2;

import com.fs.global.CustomException;

class TimeCrashException extends CustomException {
    TimeCrashException() {
        super("预约时间段已被占用");
    }
}

class BadRequestException extends CustomException {
    BadRequestException() {
        super("请求参数错误");
    }

    BadRequestException(String err) {
        super(err);
    }
}

class OpenDoorException extends CustomException {
    OpenDoorException() {
        super("开门失败");
    }

    OpenDoorException(String err) {
        super(err);
    }
}

class UpdateFriendException extends CustomException {
    UpdateFriendException() {
        super("更新朋友信息失败");
    }
}

class DeviceControlException extends CustomException{
    DeviceControlException(String err){
        super(err);
    }
}

class WechatApiException extends CustomException{
    WechatApiException(String err){super(err);}
}

class PurchaseStateException extends CustomException{
    PurchaseStateException(String err){
        super("订单状态异常:"+err);}
}


